Skip to main content

leftMargin

Type

property

Summary

Specifies how close text within an object can come to the object's left edge, and how close objects in a group can come to the group's left edge.

Syntax

set the leftMargin of {<button> | <field> | <group>} to <pixels>

Description

Use the leftMargin property to change the amount of blank space between an object's left edge and its contents.

The leftMargin property of a field or button specifies how many blank pixels are left between the object's left edge and the left edge of its text. The leftMargin of a group specifies how far the group's left edge extends below its leftmost object.

An object's leftMargin property is equal to item 1 of its margins property.

Examples

set the leftMargin of field "Melting Point" to 10
set the leftMargin of last button to the leftMargin of first button

command: group

glossary: object, property, non-negative, group

keyword: default, item, button, field, integer

object: field

property: left, wideMargins, pixels, margins, firstIndent

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?